﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="wFrmImpresionCartaMPCartaT.aspx.cs" Inherits="Crosland.Automotriz.Web.Vehiculos.wFrmImpresionCartaMPCartaT" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxLoadingPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxDocking" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

<script type="text/javascript">

    function ShowImpresion() {
        popupImpresion.Show();
    }

    function ShowValidacion() {
        pcValidacionCliente.Show();
    }

    function ShowCMP() {
        pcReporte.Show();
    }

    function ShowCT() {
        pcReporte.Show();
    }

    function CerrarImpresion() {
        pcImpresion.Hide();
    }

    function ShowImpresionMasiva() {
        pcImpresion.Show();
    }

    function PrintReport() {
        var viewerReference = $find('ctl00_cphMain_pcReporte_rvPopupReporte');

        var stillonLoadState = viewerReference.get_isLoading();

        if (!stillonLoadState) {
            var reportArea = viewerReference.get_reportAreaContentType();
            if (reportArea == Microsoft.Reporting.WebFormsClient.ReportAreaContent.ReportPage) {
                $find('ctl00_cphMain_pcReporte_rvPopupReporte').invokePrintDialog();
            }
        }
    } 

</script>

     <div class="main-header" style="width:100%;">
                <div class="main-titulo">Impresión Cartas Medio Pago y Título</div>
     </div>

     <div class="content-form">
     <asp:UpdatePanel ID="upImpresion" runat="server">
     <ContentTemplate>

 
         <table>
            <tr>
            <td>
                <dx:ASPxButton ID="btnImprimir" runat="server" Text="Imprimir" 
                    AutoPostBack="False" ClientInstanceName="btnImprimir" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px" HorizontalAlign="Left" ImageSpacing="2px" 
                    onclick="btnImprimir_Click">
                    <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Esta seguro de imprimir los documentos?');
    
}" />
                    <Image Url="~/Images/printer.png">
                    </Image>
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" 
                    ClientInstanceName="btnSalir" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px" HorizontalAlign="Center" ImageSpacing="2px" 
                    VerticalAlign="Middle" onclick="btnSalir_Click">
                    <Image Url="~/Images/logout.png">
                    </Image>
                </dx:ASPxButton>
            </td>
            </tr>

         </table>
         
      
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
            AssociatedUpdatePanelID="upImpresion" DisplayAfter="0">
        <ProgressTemplate>
        <div style="padding: 10px; border: 1px solid #C0C0C0; position: absolute; top: 231px; left: 652px; background-color: #FFFFFF; color: #000000; width: 200px; height: 50px; text-align: center;">
            <img src="../Images/loading.gif" style="vertical-align: middle; margin-right: 10px;" />
            <asp:Label ID="feedback" Text="Por favor espere..." runat="server" 
                ForeColor="#333333" Font-Bold="True" Font-Names="Verdana"></asp:Label>
                </div>
        </ProgressTemplate>
        </asp:UpdateProgress>

         <div style="clear:both;height:15px">
             <hr />
         </div>
         <table width="100%" border="0" cellpadding="1" cellspacing="1">
             <tr>
                <td valign="top" style="width: 344px">
                    <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="340px" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                        GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                        HeaderText="Datos de Consulta" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                            PaddingTop="10px" />
                        <HeaderImage Url="~/Images/search.png">
                        </HeaderImage>
                        <HeaderStyle>
                        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                            PaddingTop="3px" />
                        </HeaderStyle>
                        <PanelCollection>
                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                            <table width="100%">
                                <tr>
                                <td style="width: 136px">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                </tr>
                                <tr>
                                    <td style="width: 136px">
                                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Text="Filtro de Documentos:">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="ddlFiltroDoc" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" SelectedIndex="0" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Width="160px">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="Cartas por Imprimir" Value="0" />
                                                <dx:ListEditItem Text="Cartas Impresas" Value="1" />
                                            </Items>
                                            <ItemStyle Height="30px" />
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <DropDownButton Width="20px">
                                            </DropDownButton>
                                            <ButtonStyle Width="20px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 136px; height: 11px;">
                                    </td>
                                    <td style="height: 11px;">
                                    </td>
                                </tr>
                            </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxRoundPanel>
                </td>
                 <td valign="top" width="155">
                     <dx:ASPxRoundPanel ID="ASPxRoundPanel4" runat="server" 
                         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                         CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                         GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                         HeaderText="Fecha de Emisión" 
                         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                         Width="150px">
                         <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                             PaddingTop="10px" />
                         <HeaderImage Url="~/Images/calendar.png">
                         </HeaderImage>
                         <HeaderStyle>
                         <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                             PaddingTop="3px" />
                         </HeaderStyle>
                         <PanelCollection>
                             <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                 <table width="100%">
                                     <tr>
                                         <td style="width: 33px">
                                             &nbsp;</td>
                                         <td>
                                             &nbsp;</td>
                                     </tr>
                                     <tr>
                                         <td style="width: 33px">
                                             <asp:Label ID="Label1" runat="server" Text="Año:"></asp:Label>
                                         </td>
                                         <td>
                                             <dx:ASPxComboBox ID="ddlAnioEmision" runat="server" ClientInstanceName="ddlAnio" 
                                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                 CssPostfix="Office2010Blue" Font-Bold="False" Height="30px" SelectedIndex="0" 
                                                 Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                 Width="70px">
                                                 <Items>
                                                     <dx:ListEditItem Selected="True" Text="2013" Value="2013" />
                                                     <dx:ListEditItem Text="2014" Value="2014" />
                                                     <dx:ListEditItem Text="2015" Value="2015" />
                                                 </Items>
                                                 <ItemStyle Height="30px" />
                                                 <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                 </LoadingPanelImage>
                                                 <LoadingPanelStyle ImageSpacing="5px">
                                                 </LoadingPanelStyle>
                                                 <DropDownButton Width="20px">
                                                 </DropDownButton>
                                                 <ButtonStyle Width="13px">
                                                 </ButtonStyle>
                                                 <Paddings PaddingLeft="5px" />
                                             </dx:ASPxComboBox>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td style="width: 33px; height: 11px;">
                                             </td>
                                         <td style="height: 11px">
                                             </td>
                                     </tr>
                                 </table>
                             </dx:PanelContent>
                         </PanelCollection>
                     </dx:ASPxRoundPanel>
                 </td>
                 <td valign="top">
                     <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" 
                         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                         CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                         GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" HeaderText="Fecha de Operación" 
                         Height="73px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                         Width="420px">
                         <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                             PaddingTop="10px" />
                         <HeaderImage Url="~/Images/calendar.png">
                         </HeaderImage>
                         <HeaderStyle>
                         <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                             PaddingTop="3px" />
                         </HeaderStyle>
                         <PanelCollection>
                             <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                 <table width="100%">
                                     <tr>
                                         <td colspan="5">
                                             &nbsp;</td>
                                     </tr>
                                     <tr>
                                         <td style="width: 30px">
                                             <dx:ASPxLabel ID="ASPxLabel2" runat="server" 
                                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                 CssPostfix="Office2010Blue" Text="Año:">
                                             </dx:ASPxLabel>
                                         </td>
                                         <td width="75">
                                             <dx:ASPxComboBox ID="ddlAnio" runat="server" ClientInstanceName="ddlAnio" 
                                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                 CssPostfix="Office2010Blue" Height="30px" SelectedIndex="0" Spacing="0" 
                                                 SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                 Width="70px" Font-Bold="False">
                                                 <Items>
                                                     <dx:ListEditItem Selected="True" Text="2013" Value="2013" />
                                                     <dx:ListEditItem Text="2014" Value="2014" />
                                                     <dx:ListEditItem Text="2015" Value="2015" />
                                                 </Items>
                                                 <ItemStyle Height="30px" />
                                                 <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                 </LoadingPanelImage>
                                                 <LoadingPanelStyle ImageSpacing="5px">
                                                 </LoadingPanelStyle>
                                                 <DropDownButton Width="20px">
                                                 </DropDownButton>
                                                 <ButtonStyle Width="13px">
                                                 </ButtonStyle>
                                                 <Paddings PaddingLeft="5px" />
                                             </dx:ASPxComboBox>
                                         </td>
                                         <td style="width: 30px">
                                             <dx:ASPxLabel ID="ASPxLabel3" runat="server" 
                                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                 CssPostfix="Office2010Blue" Text="Mes:">
                                             </dx:ASPxLabel>
                                         </td>
                                         <td width="105">
                                             <dx:ASPxComboBox ID="ddlMes" runat="server" ClientInstanceName="ddlMes" 
                                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                 CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                                 SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                 <Items>
                                                     <dx:ListEditItem Text="-Todos-" Value="0" />
                                                     <dx:ListEditItem Text="Enero" Value="1" />
                                                     <dx:ListEditItem Text="Febrero" Value="2" />
                                                     <dx:ListEditItem Text="Marzo" Value="3" />
                                                     <dx:ListEditItem Text="Abril" Value="4" />
                                                     <dx:ListEditItem Text="Mayo" Value="5" />
                                                     <dx:ListEditItem Text="Junio" Value="6" />
                                                     <dx:ListEditItem Text="Julio" Value="7" />
                                                     <dx:ListEditItem Text="Agosto" Value="8" />
                                                     <dx:ListEditItem Text="Setiembre" Value="9" />
                                                     <dx:ListEditItem Text="Octubre" Value="10" />
                                                     <dx:ListEditItem Text="Noviembre" Value="11" />
                                                     <dx:ListEditItem Text="Diciembre" Value="12" />
                                                 </Items>
                                                 <ItemStyle Height="30px" />
                                                 <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                 </LoadingPanelImage>
                                                 <LoadingPanelStyle ImageSpacing="5px">
                                                 </LoadingPanelStyle>
                                                 <DropDownButton Width="20px">
                                                 </DropDownButton>
                                                 <ButtonStyle Width="13px">
                                                 </ButtonStyle>
                                                 <Paddings PaddingLeft="5px" />
                                             </dx:ASPxComboBox>
                                         </td>
                                         <td width="100">
                                             <dx:ASPxButton ID="btnConsultar" runat="server" 
                                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                 CssPostfix="Office2010Blue" Height="30px" HorizontalAlign="Left" 
                                                 ImageSpacing="2px" OnClick="btnConsultar_Click" 
                                                 SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                                                 Width="75px">
                                                 <Image Height="12px" Url="~/Images/search.png">
                                                 </Image>
                                             </dx:ASPxButton>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td style="width: 30px; height: 11px;">
                                         </td>
                                         <td style="height: 11px" width="75">
                                         </td>
                                         <td style="width: 30px; height: 11px;">
                                         </td>
                                         <td style="height: 11px" width="105">
                                         </td>
                                         <td style="height: 11px" width="100">
                                         </td>
                                     </tr>
                                 </table>
                             </dx:PanelContent>
                         </PanelCollection>
                     </dx:ASPxRoundPanel>
                 </td>
                 <td style="width: 74px" valign="top">
                     &nbsp;</td>
             </tr>

             <tr>
                <td colspan="4">
                
         <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="926px" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
             GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
             HeaderText="Opciones de Impresión" 
             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="71px">
             <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="10px" />
             <HeaderStyle>
             <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="3px" />
             </HeaderStyle>
             <PanelCollection>
             <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
             
             <table width="100%">
                 <tr>
                     <td style="width: 135px; height: 18px;">
                         Impresión:</td>
                     <td style="height: 18px;">
                         <asp:RadioButtonList ID="rbImpresion" runat="server" 
                             RepeatDirection="Horizontal">
                             <asp:ListItem Value="0">Todo lo seleccionado</asp:ListItem>
                             <asp:ListItem Selected="True" Value="1">Registro actual</asp:ListItem>
                         </asp:RadioButtonList>
                     </td>
                 </tr>
                <tr>
                    
                    <td style="width: 135px">
                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Text="Representante Legal:">
                        </dx:ASPxLabel>
                    </td>
                    
                    <td>
                        <dx:ASPxComboBox ID="ddlRepreLegal" runat="server" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            TextField="DES_CLIENTE" ValueField="ID_CLIENTE" Width="300px">
                            <ItemStyle Height="30px" />
                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                            </LoadingPanelImage>
                            <LoadingPanelStyle ImageSpacing="5px">
                            </LoadingPanelStyle>
                            <DropDownButton Width="20px">
                            </DropDownButton>
                            <ButtonStyle Width="13px">
                            </ButtonStyle>
                            <Paddings PaddingLeft="5px" />
                        </dx:ASPxComboBox>
                    </td>
                    
                </tr>
             </table>
             
             </dx:PanelContent>
             </PanelCollection>
         </dx:ASPxRoundPanel>

                
                </td>

             </tr>

         </table>

         <div style="clear:both;height:10px"></div>

         <dx:ASPxGridView ID="grdFacturas" runat="server" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" 
             ClientInstanceName="grdFacturas" EnableCallBacks="False" 
             KeyFieldName="NRO_FACTURA" onpageindexchanged="grdFacturas_PageIndexChanged" 
                 onprerender="grdFacturas_PreRender">
             <Columns>
                 <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" 
                     Width="35px" FixedStyle="Left">
                     <CellStyle HorizontalAlign="Center">
                     </CellStyle>
                    <HeaderTemplate>
                        <dx:ASPxCheckBox ID="SelectAllCheckBox" runat="server" ToolTip="Seleccionar/No seleccionar"
                            ClientSideEvents-CheckedChanged="function(s, e) { grdFacturas.SelectAllRowsOnPage(s.GetChecked()); }" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewCommandColumn>

                 <dx:GridViewDataCheckColumn Caption="Carta MP" FieldName="IND_IMPR_CMP" 
                     VisibleIndex="12" Width="65px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataCheckColumn>
                 <dx:GridViewDataCheckColumn Caption="Carta Título" FieldName="IND_IMPR_CT" 
                     VisibleIndex="13" Width="75px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataCheckColumn>
                 <dx:GridViewDataTextColumn Caption="ID_ORG_VTA" FieldName="ID_ORG_VTA" 
                     Visible="False" VisibleIndex="0">
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="ID_OFI_VTA" FieldName="ID_OFI_VTA" 
                     Visible="False" VisibleIndex="1">
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="ID_CLIENTE" FieldName="ID_CLIENTE" 
                     Visible="False" VisibleIndex="2">
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Nombre o Razón Social" FieldName="DES_CLIENTE" 
                     VisibleIndex="3" Width="300px" FixedStyle="Left">
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle BackColor="#FFFFD6">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Fec.Operación" FieldName="FEC_OPERACION" 
                     VisibleIndex="4" Width="95px" FixedStyle="Left">
                     <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy"></PropertiesTextEdit>
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center" BackColor="#FFFFD6">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Nro Factura" FieldName="NRO_FACTURA" 
                     VisibleIndex="5" Width="85px" FixedStyle="Left">
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center" BackColor="#FFFFD6">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Folio" FieldName="NRO_FOLIO" 
                     VisibleIndex="6" Width="150px" FixedStyle="Left">
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle BackColor="#FFFFD6">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Fec.Emisión" FieldName="FEC_FACTURA" 
                     VisibleIndex="7" Width="80px" FixedStyle="Left">
                     <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy"></PropertiesTextEdit>
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center" BackColor="#FFFFD6">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Dirección" FieldName="DES_DIRECCION" 
                     VisibleIndex="8" Width="280px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Moneda" FieldName="Moneda" VisibleIndex="9" 
                     Width="60px">
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Imp.Doc" FieldName="IMP_VENTA" 
                     VisibleIndex="10" Width="85px">
                     <PropertiesTextEdit DisplayFormatString="n2"></PropertiesTextEdit>
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Imp.Aplic." FieldName="IMP_APLICADO" 
                     VisibleIndex="11" Width="85px">
                     <PropertiesTextEdit DisplayFormatString="n2"></PropertiesTextEdit>
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Dpto.Prov.Dist." FieldName="DEP_PROV_DIST" 
                     VisibleIndex="14" Width="350px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Oficina Registral" 
                     FieldName="DES_ZONA_REGISTRAL" VisibleIndex="15" Width="300px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Nro Pedido" FieldName="NroPedido" 
                     VisibleIndex="16" Width="100px">
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Nro Caja" FieldName="NRO_CAJA" 
                     VisibleIndex="17" Width="70px">
                     <HeaderStyle HorizontalAlign="Center" />
                     <CellStyle HorizontalAlign="Center">
                     </CellStyle>
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Nombre RL" FieldName="NOMBRE_RL" 
                     VisibleIndex="18" Width="300px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="TipoDoc RL" FieldName="TIPO_DOC_RL" 
                     VisibleIndex="19" Width="200px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="NumDoc RL" FieldName="NUM_DOC_RL" 
                     VisibleIndex="20" Width="100px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Cargo RL" FieldName="CARGO_RL" 
                     VisibleIndex="21" Width="150px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Chasis" FieldName="NUM_CHASIS" 
                     VisibleIndex="22" Width="160px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Motor" FieldName="NUM_MOTOR" 
                     VisibleIndex="23" Width="110px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Marca" FieldName="MARCA" VisibleIndex="24" 
                     Width="100px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Modelo" FieldName="MODELO" 
                     VisibleIndex="25" Width="220px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Nro Póliza" FieldName="NRO_POLIZA" 
                     VisibleIndex="26" Width="80px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
                 <dx:GridViewDataTextColumn Caption="Nro Título" FieldName="NRO_TITULO" 
                     VisibleIndex="27" Width="70px">
                     <HeaderStyle HorizontalAlign="Center" />
                 </dx:GridViewDataTextColumn>
             </Columns>
             <SettingsBehavior AllowSort="False" AllowDragDrop="False" AllowGroup="False" />
             <SettingsPager PageSize="20">
             </SettingsPager>
             <Settings ShowHorizontalScrollBar="True" ShowFilterRow="True" />
             <SettingsBehavior allowfocusedrow="True" AllowSort="False" />
             <Settings ShowFilterRow="True" ShowHorizontalScrollBar="True" />
             <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                 <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                 </LoadingPanelOnStatusBar>
                 <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                 </LoadingPanel>
             </Images>
             <ImagesFilterControl>
                 <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                 </LoadingPanel>
             </ImagesFilterControl>
             <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                 CssPostfix="Office2010Blue">
                 <Header ImageSpacing="5px" SortingImageSpacing="5px">
                 </Header>
                 <LoadingPanel ImageSpacing="5px">
                 </LoadingPanel>
             </Styles>
             <StylesPager>
                 <PageNumber ForeColor="#3E4846">
                 </PageNumber>
                 <Summary ForeColor="#1E395B">
                 </Summary>
             </StylesPager>
             <StylesEditors ButtonEditCellSpacing="0">
                 <ProgressBar Height="21px">
                 </ProgressBar>
             </StylesEditors>
         </dx:ASPxGridView>

         <br />
         <dx:ASPxPopupControl ID="popupImpresion" runat="server" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue" 
             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             ClientInstanceName="popupImpresion" HeaderText="Mensaje" Modal="True" 
             PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
             Height="17px" AppearAfter="0" CloseAction="CloseButton" 
             EnableHotTrack="False">
            
             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
             </LoadingPanelImage>
             <HeaderStyle>
             <Paddings PaddingLeft="7px" />
             </HeaderStyle>
             <LoadingPanelStyle ImageSpacing="5px">
             </LoadingPanelStyle>
             <ContentCollection>
                <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
                
                <table>
                    <tr>
                        <td>
                            <dx:ASPxRadioButtonList ID="rbReporte" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                ClientInstanceName="rbReporte">
                                <Items>
                                    <dx:ListEditItem Text="Carta Medio de Pago" Value="1" />
                                    <dx:ListEditItem Text="Carta Título" Value="2" />
                                </Items>
                                <Border BorderStyle="None" />
                            </dx:ASPxRadioButtonList>
                        </td>
                    </tr>

                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>

                    <tr>
                    <td>
                    <center>
                        <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" Width="100px" 
                            AutoPostBack="False" OnClick="btnAceptar_Click" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            <ClientSideEvents Click="function(s, e) {
	popupImpresion.Hide();
}" />
                            <Image Url="~/Images/ok.png">
                            </Image>
                        </dx:ASPxButton>
                    </center>
                    </td>
                    </tr>
                </table>
               

                </dx:PopupControlContentControl>
             </ContentCollection>
            
         </dx:ASPxPopupControl>



         <br />



         <dx:ASPxPopupControl ID="pcValidacionCliente" runat="server" 
             ClientInstanceName="pcValidacionCliente" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
             Height="17px" 
             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
             EnableViewState="False" HeaderText="Mensaje" Modal="True" 
             PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
             AppearAfter="0" CloseAction="CloseButton" EnableHotTrack="False">
             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
             </LoadingPanelImage>
             <HeaderStyle>
             <Paddings PaddingLeft="7px" />
             </HeaderStyle>
             <LoadingPanelStyle ImageSpacing="5px">
             </LoadingPanelStyle>
             <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel4" runat="server" Width="200px">
        <PanelCollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                <table style="width: 197px">
                    <tr>
                        <td style="width: 180px">
                            <center>
                                <strong>
                                <dx:ASPxLabel ID="lblValidacion" runat="server" 
                                    ClientInstanceName="lblValidacion" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Font-Bold="True" Height="32px" 
                                    style="color: #FF0000" Width="180px">
                                </dx:ASPxLabel>
                                </strong>
                            </center>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px; height: 18px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                            <center>
                                <dx:ASPxButton ID="btnOKV" runat="server" AutoPostBack="False" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="OK" 
                                    Width="100px">
                                    <ClientSideEvents Click="function(s, e) {
	pcValidacionCliente.Hide();
}" />
                                    <Image Url="~/Images/ok.png">
                                    </Image>
                                </dx:ASPxButton>
                            </center>
                        </td>
                    </tr>
                </table>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxPanel>
                 </dx:PopupControlContentControl>
</ContentCollection>
         </dx:ASPxPopupControl>

     </ContentTemplate>
     </asp:UpdatePanel>
     </div>


    <dx:ASPxPopupControl ID="pcReporte" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" EnableHotTrack="False" 
        HeaderText="Vista Previa / Imprimir" Height="500px" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="800px" AppearAfter="0" CloseAction="CloseButton" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        ClientInstanceName="pcReporte" AllowDragging="True" Modal="True" 
        ClientIDMode="Static">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">

<table>
                            <tr>
                            <td>
                                <dx:ASPxButton ID="btnImprimirCMP" runat="server"
                                    Width="20px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" HorizontalAlign="Center" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    VerticalAlign="Middle" Text="Imprimir" onclick="btnImprimirCMP_Click">
                                    <ClientSideEvents Click="function(s, e) {
	PrintReport();
    pcReporte.Hide();
}" />
                                    <Image Url="~/Images/printer.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                               
                               

                            </tr>
                            </table>
            

                                <rsweb:ReportViewer ID="rvPopupReporte" 
        runat="server" Width="100%"
                                style="padding-top:0; margin-top:0; top:0; vertical-align:top"
                                BackColor="#F2F2F2"  ShowFindControls="False" 
                                ShowZoomControl="False" SplitterBackColor="White" 
                                Height="420px" PromptAreaCollapsed="False" 
        KeepSessionAlive="False" ShowBackButton="False" ShowCredentialPrompts="False" 
        ShowDocumentMapButton="False" ShowPageNavigationControls="False" 
        ShowParameterPrompts="False" ShowPromptAreaButton="False" 
        ShowRefreshButton="False" ShowWaitControlCancelLink="False">
                                </rsweb:ReportViewer>

</dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>





    <br />
    <dx:ASPxPopupControl ID="pcImpresion" runat="server" 
        ClientInstanceName="pcImpresion" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" EnableHotTrack="False" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        HeaderText="Impresión" AppearAfter="0" CloseAction="CloseButton">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">

    <strong>
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center">
                <strong>
                <asp:LinkButton ID="lkbVerPdf" runat="server" OnClick="lkbVerPdf_Click" 
                    style="color: #CC3300; text-decoration: underline">Documentos a Imprimir</asp:LinkButton>
                </strong>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </strong>
    <center>
    <dx:ASPxButton ID="btnCerrarImpresion" runat="server" 
            ClientInstanceName="btnCerrarImpresion" AutoPostBack="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cerrar" 
            Width="100px">
        <ClientSideEvents Click="function(s, e) {
	CerrarImpresion();
}" />
        <Image Url="~/Images/logout.png">
        </Image>
    </dx:ASPxButton>
    </center>
</dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>






             





</asp:Content>
